<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Adding Sources to Event Handlers</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
	<table class="tutorial-nav-box">
	<tr>
		<td style="width: 30%">
							<a href="../../event/event/tutorial_getting-started.pkg.html" class="nav-button">Previous</a>
					</td>
		<td style="text-align: center">
							<a href="../../event/event/tutorial_event.pkg.html" class="nav-button">Up</a>
					</td>
		<td style="text-align: right; width: 30%">
							<a href="../../event/event/tutorial_grouping-triggers.pkg.html" class="nav-button">Next</a>
					</td>
	</tr>
	<tr>
		<td style="width: 30%">
							<span class="detail">Getting Started</span>
					</td>
		<td style="text-align: center">
							<span class="detail">Event User Guide</span>
					</td>
		<td style="text-align: right; width: 30%">
							<span class="detail">Grouping Event Triggers</span>
					</td>
	</tr>
</table>
	
<div><a name=""></a><div class="ref-title-box"><h1 class="ref-title">Adding Sources to Event Handlers</h1>
		<h2 class="ref-purpose"></h2></div>
	<div class="ref-synopsis"><span class="author">Gerrit Jan van Ahee
			<div class="author-blurb"><a href="mailto:gerrit.jan@yes2web.nl">Gerrit Jan van Ahee</a></div></span></div>
	<span><a name="adding-sources"></a><h3 class="title">Case</h3><p>Besides the Listen_To_Me classes, the same handlers should apply to Listen_To_Me_Too. This is a class that does not extend Listen_To_Me.
			<p><div class="title">Solution</div><p>Just add the name of Listen_To_Me_Too to the list of listeners. Don't forget to trigger the proper events in Listen_To_Me_Too!</p>
				<div class="src-code"><ol><li><div class="src-line"><span class="src-key">new&nbsp;</span><span class="src-id">Listen_To_Me_Handler</span><span class="src-sym">(</span><span class="src-str">'Listen_To_Me'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Listen_To_Me_Too'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
</ol></div></p></p></span></div>

	<table class="tutorial-nav-box">
	<tr>
		<td style="width: 30%">
							<a href="../../event/event/tutorial_getting-started.pkg.html" class="nav-button">Previous</a>
					</td>
		<td style="text-align: center">
							<a href="../../event/event/tutorial_event.pkg.html" class="nav-button">Up</a>
					</td>
		<td style="text-align: right; width: 30%">
							<a href="../../event/event/tutorial_grouping-triggers.pkg.html" class="nav-button">Next</a>
					</td>
	</tr>
	<tr>
		<td style="width: 30%">
							<span class="detail">Getting Started</span>
					</td>
		<td style="text-align: center">
							<span class="detail">Event User Guide</span>
					</td>
		<td style="text-align: right; width: 30%">
							<span class="detail">Grouping Event Triggers</span>
					</td>
	</tr>
</table>
	
	<p class="notes" id="credit">
		Documentation generated on Fri, 28 Jan 2011 10:33:55 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>